home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global preloadID
-
- on new me, spriteRef
- if the paramCount = 1 then
- nothing()
- else
- if the paramCount = 2 then
- spriteNum = spriteRef.spriteNum
- end if
- end if
- return me
- end
-
- on mouseDown me
- set the member of sprite the spriteNum of me to member(word 1 of the name of the member of sprite the spriteNum of me && "click")
- updateStage()
- end
-
- on mouseUp me
- set the member of sprite the spriteNum of me to word 1 of the name of the member of sprite the spriteNum of me
- updateStage()
- if preloadID > 0 then
- netAbort(preloadID)
- preloadID = 0
- end if
- clearDialog()
- end
-
- on mouseUpOutSide me
- set the member of sprite the spriteNum of me to word 1 of the name of the member of sprite the spriteNum of me
- updateStage()
- end
-
- on mouseEnter me
- if the stillDown and (the clickOn = me.spriteNum) then
- set the member of sprite the spriteNum of me to word 1 of the name of the member of sprite the spriteNum of me && "click"
- updateStage()
- end if
- end
-
- on mouseLeave me
- set the member of sprite the spriteNum of me to word 1 of the name of the member of sprite the spriteNum of me
- updateStage()
- end
-